package com.lmk.homework;

import java.util.Scanner;

public class work04 {
    public static void main(String[] args) {

        for (int a = 1; a <= 5; a++) {
            for (int b = 1; b <= 10; b++) {
                System.out.print("*");
            }
            System.out.println();
        }
        System.out.println();
        //输出空心正方形
        for (int D = 1; D <= 5; D++) {
            System.out.print("*");
            for (int F= 1; F<= 5-1; F++) {
                if (D == 1 || D == 5 || F== 0 || F== 5-1)
                    System.out.print("*");
                else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
        System.out.println();
            //打印三角形数
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入总共输入的行数");
        int ac=sc.nextInt();
        for (int i = 1; i <= ac; i++) {
            //打印空格
            for (int j = 1; j <= ac - i; j++) {
                System.out.print(" ");
            }
            //打印数字
            for (int k = 1; k <= 2 * i - 1; k++) {
                System.out.print(i);
            }//输出换行
            System.out.println();
        }




    }
}